Skip to main content

DescribeStrategyExecDetail

Description

call the DescribeStrategyExecDetail interface to query the result details of the latest check performed by a single baseline detection policy, including the time of the latest check performed, the number of detected risk items, and the risk details of the baseline configuration.

Request Method

POST

Request Path

/apsara/route/aegis/DescribeStrategyExecDetail

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
SourceIpBODYstringNo1.2.3.4access source IP address.
regionIdBODYstringYesNo sample value for this parameter.region id
StrategyIdBODYintegerYes1baseline detection policy ID. description to query the detection results of a single baseline detection policy, you need to provide the ID of the baseline policy, which can be obtained by DescribeStratety interface.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
EndTimestring2019-01-08 20:11:20baseline check execution end time.
RequestIdstring09322632-4668-4AD9-BD0D-32757DEFBBA6request ID of the result.
Percentstring100%execution progress.
IPstring1.2.3.4the IP address of the server instance performing the baseline check.
StartTimestring2019-01-08 19:41:12baseline check execution start time.
SuccessCountinteger81baseline check status is passed .
IntranetIpstring1.2.3.5intranet IP.
FailedEcsListarrayNo sample value for this parameter.list of servers where baseline risk items are detected.
ReasonstringDetect timeoutthe reason why the baseline check failed.
SourcestringManualbaseline check execution type. Schedule: Periodic automatic check Manual: real-time manual check
InstanceNamestringTest -20180703instance name.
FailCountinteger94number of risk items that failed the baseline check.
InProcessCountinteger0The status is the number of baseline check tasks being executed.

Example

Successful Response example

{
"EndTime":"2019-01-08 20:11:20",
"RequestId":"09322632-4668-4AD9-BD0D-32757DEFBBA6",
"Percent":"100%",
"IP":"1.2.3.4",
"StartTime":"2019-01-08 19:41:12",
"SuccessCount":"81",
"IntranetIp":"1.2.3.5",
"FailedEcsList":"",
"Reason":"Detect timeout",
"Source":"Manual",
"InstanceName":"Test -20180703",
"FailCount":"94",
"InProcessCount":"0"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}

title: DescribeStratety

DescribeStratety

Description

call the DescribeStratety interface to query the setting details of the baseline check policy.

Request Method

POST

Request Path

/apsara/route/aegis/DescribeStratety

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
SourceIpBODYstringNo1.2.3.4access source IP address.
regionIdBODYstringYesNo sample value for this parameter.region id
LangBODYstringNozhthe language type of the request and receive message. zh: Chinese en: English
StrategyIdsBODYstringNotest1,test2,test3baseline check policy ID, multiple separated by commas.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
CycleStartTimeinteger6the baseline check start time can be performed at four time points: 0:00, 06:00, 12:00, 18:00.
EcsCountinteger5the number of servers performing baseline detection in this baseline check policy.
PassRateinteger80last detection pass rate.
RequestIdstring16B9826C-B99F-4F8A-8048-EA81D6D3DE8Brequest ID of the result.
CycleDaysinteger1baseline check cycle. 1: Every 1 day 3: Every 3 days 7: Every 7 days 30: every 30 days
ConfigTargetsarrayNo sample value for this parameter.baseline check policy association grouping information.
Flagstringaddassociation identifier.
RiskCountinteger5number of selected baseline check items.
Namestringtestpolicy name.
Targetstring3259405associated group ID.
ExecStatusinteger1execution status. 1: Not executed 2: Execution
Typeinteger1the type of baseline check policy. 1: default policy 2: user-defined policy
ProcessRateinteger80baseline check progress.
StrategiesarrayNo sample value for this parameter.baseline check policy information.
TargetTypestringgroupIdassociation type.
Idinteger212635policy ID.

Example

Successful Response example

{
"CycleStartTime":"6",
"EcsCount":"5",
"PassRate":"80",
"RequestId":"16B9826C-B99F-4F8A-8048-EA81D6D3DE8B",
"CycleDays":"1",
"ConfigTargets":"",
"Flag":"add",
"RiskCount":"5",
"Name":"test",
"Target":"3259405",
"ExecStatus":"1",
"Type":"1",
"ProcessRate":"80",
"Strategies":"",
"TargetType":"groupId",
"Id":"212635"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}

title: DescribeSummaryInfo

DescribeSummaryInfo

Description

Call this interface to query the security score information of assets, such as the security score of assets, the number of protected assets, and the number of unprotected assets.

Request Method

POST

Request Path

/apsara/route/aegis/DescribeSummaryInfo

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
SourceIpBODYstringNo1.2.3.4access the IP address of the source.
regionIdBODYstringYesNo sample value for this parameter.region id
LangBODYstringNozhthe language type of the request and receive message. zh: Chinese en: English
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
AegisClientOnlineCountinteger127number of protected assets.
RequestIdstringD40198E1-6EA8-482E-B3C7-D9573D75C0CArequest ID of the result.
AegisClientOfflineCountinteger12the number of unprotected assets.
SecurityScoreinteger44the security score of the asset. The score is explained as follows: 95-100: indicates that the asset is in good security status. 85-94: indicates that assets have potential safety hazards, and it is recommended to strengthen the safety protection system as soon as possible. 70-84: indicates that there are many potential safety hazards in assets, and it is recommended to strengthen the safety protection system in time. below 69: indicates that the ability of assets to defend against hacker intrusion is very weak, and it is recommended to strengthen the security protection system as soon as possible.
Successbooleantruerequest status of the result.

Example

Successful Response example

{
"AegisClientOnlineCount":"127",
"RequestId":"D40198E1-6EA8-482E-B3C7-D9573D75C0CA",
"AegisClientOfflineCount":"12",
"SecurityScore":"44",
"Success":"true"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}